package com.ke.forum.mbg.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ke.forum.mbg.entity.User;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentDto {

    private Integer id;

    /**
     * 评论内容
     */
    private String content;

    private Integer articleId;

    /**
     * 评论人id
     */
    private String userUuid;

    /**
     * 主评论id
     */
    private Integer commentId;

    /**
     * 父评论id
     */
    private Integer parentId;

    /**
     * 0未check 1checked
     */
    private Integer checked;

    /**
     * 被回复人id
     */
    private String toUuid;

    /**
     * 文章发表人id
     */
    private String upUuid;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 逻辑删除
     */
    private Integer status;

    private User user;

    private String toUserName;

    Integer replyNum;
}
